package com.coupons.business.common.vo.decorator;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.coupons.business.common.vo.Partner;

public class PartnerRowMapper implements RowMapper {

	public Object mapRow(ResultSet objaresultSet, int index) throws SQLException {
		
		Partner objPartner = new Partner();
		objPartner.setPartnerId(objaresultSet.getInt("partner_id"));
		objPartner.setPartnerName(objaresultSet.getString("partner_name"));
		objPartner.setCreationDate(objaresultSet.getDate("crtn_dt"));
		objPartner.setLastUpdatedDate(objaresultSet.getDate("last_updt_dt"));
		objPartner.setDescription(objaresultSet.getString("description"));
		objPartner.setStatus(objaresultSet.getString("status"));
		objPartner.setLicenseEndDate(objaresultSet.getDate("lcsn_end_dt"));
		objPartner.setLastUpdatedUser(objaresultSet.getString("last_updt_user"));
		return objPartner;
	}

}
